package tech.xs.dao.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Repository;

import tech.xs.dao.ClaimVoucherDetailDao;
import tech.xs.pojo.ClaimVoucherDetail;
@Repository
public class ClaimVoucherDetailDaoImpl implements ClaimVoucherDetailDao {
	@Autowired
	private HibernateTemplate hibernateTemplate;
	@Override
	public Serializable save(ClaimVoucherDetail claimVoucherDetail) {
		// TODO Auto-generated method stub
		return hibernateTemplate.save(claimVoucherDetail);
	}

	@Override
	public void deleteDetail(ClaimVoucherDetail detail) {
		// TODO Auto-generated method stub
		hibernateTemplate.delete(detail);
	}

	@Override
	public ClaimVoucherDetail findDetailById(Long id) {
		// TODO Auto-generated method stub
		return hibernateTemplate.load(ClaimVoucherDetail.class, id);
	}

}
